:root {
    --pink: #e84393;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: capitalize;
    transition: .2s linear;
}

body {
    background-color: #fff;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: hidden;
}

section {
    padding: 2rem 9%;
}

.logo img {
    width: 80%;
}


.heading {
    text-align: center;
    font-size: 4rem;
    color: #333;
    padding: 1rem;
    margin: 2rem 0;
    background: #e1e2d8;
}

.heading span {
    color: #308d65;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5rem;
    background: #119744;
    color: #fff;
    padding: .9rem 3.5rem;
    cursor: pointer;
    font-size: 1.7rem;
}

.btn:hover {
    background: white;
    color: #119744;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #32a665;
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
}



header .navbar a {
    font-size: 2rem;
    padding: 0 1.5rem;
    color: #666;
}

header .navbar a:hover {
    color: white;
}

header .icons div {
    font-size: 2.5rem;
    color: #333;
    margin-left: 1.5rem;
}

header .icons div:hover {
    color: white;
    cursor: pointer;
}

header #toggler {
    display: none;
}

header .fa-bars {
    font-size: 3rem;
    color: #333;
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    border: .1rem solid rgba(0, 0, 0, .3);
    display: none;
}


@media (max-width:991px) {

    html {
        font-size: 55%;
    }

    header {
        padding: 2rem;
    }

    section {
        padding: 2rem;
    }

    .home {
        background-position: left;
    }

}

@media (max-width:768px) {

    header .fa-bars {
        display: block;
    }

    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #eee;
        border-top: .1rem solid rgba(0, 0, 0, .1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    }

    header #toggler:checked~.navbar {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    header .navbar a {
        margin: 1.5rem;
        padding: 1.5rem;
        background: #fff;
        border: .1rem solid rgba(0, 0, 0, .1);
        display: block;
    }

    .home .content h3 {
        font-size: 5rem;
    }

    .home .content span {
        font-size: 2.5rem;
    }

    .icons-container .icons h3 {
        font-size: 2rem;
    }

    .icons-container .icons span {
        font-size: 1.7rem;
    }

}

@media (max-width:450px) {

    html {
        font-size: 50%;
    }

    .heading {
        font-size: 3rem;
    }

}


.search-form {
    position: absolute;
    top: -115%;
    right: 2rem;
    width: 50rem;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    height: 5.5rem;
    box-shadow: #333;
    background: white;

    &.active {
        top: 115%;
    }

    input {
        height: 100%;
        width: 100%;
        padding: 0 1.2rem;
        font-size: 1.6rem;
        color: black;
        text-transform: none;
    }

    label {
        font-size: 2.5rem;
        margin-right: 1.7rem;
        cursor: pointer;
        color: #119744;

        &:hover {
            color: white;
        }
    }
}

.heart,
.shopping-cart {
    position: absolute;
    top: 115%;
    right: -105%;
    background: white;
    border-radius: 5rem;
    box-shadow: #308d65;
    width: 35rem;
    padding: 2rem;
    max-height: 80vh;
    /* 设置最大高度 */
    overflow-y: auto;
    /* 添加垂直滚动条 */

    &.active {
        right: 2rem;
        transition: .4s linear;
    }


    .box {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        position: relative;

        .fa-times {
            position: absolute;
            top: 50%;
            right: 2rem;
            transform: translateY(-50%);
            font-size: 2rem;
            color: #308d65;
            cursor: pointer;

            &:hover {
                color: white;
            }
        }

        img {
            height: 10rem;
        }

        .content {
            h3 {
                font-size: 1.7rem;
                padding-bottom: .5rem;
                color: black;
            }

            span {
                font-size: 1.5 rem;
                color: #308d65;

                &.multiply {
                    margin: 0 .5rem;
                }
            }
        }
    }

    .total {
        color: #308d65;
        text-align: center;
        font-size: 2.2rem;

        span {
            color: black;
        }
    }

    .btn {
        margin-top: 1rem;
        display: inline-block;
        padding: .8rem 3rem;
        background: #119744;
        color: white;
        font-size: 1.7rem;
        cursor: pointer;
        text-align: center;
        width: 100%;

        &:hover {
            background: white;
            color: #119744;
        }
    }
}

.login-form {
    position: absolute;
    top: 115%;
    right: -105%;
    background: white;
    border-radius: 5rem;
    box-shadow: #308d65;
    width: 35rem;
    padding: 2rem;

    &.active {
        right: 2rem;
        transition: .4s linear;
    }

    h3 {
        color: black;
        text-transform: uppercase;
        font-size: 2.2rem;
        text-align: center;
        margin-bottom: .7rem;
    }

    .box {
        margin: .7rem 0;
        border: black;
        padding: 1rem 1.2rem;
        font-size: 1.5rem;
        color: black;
        text-transform: none;
        width: 100%;
    }

    .remember {
        display: flex;
        align-items: center;
        gap: .5rem;
        margin-top: .7rem 0;

        label {
            font-size: 1.5rem;
            color: #308d65;
            cursor: pointer;
        }
    }

    .btn {
        margin: 1rem 0;
        width: 100%;
        text-align: center;
    }

    p {
        color: #308d65;
        padding-top: .7rem;
        font-size: 1.4rem;

        a {
            color: #119744;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}


@keyframes fadeLeft {
    0% {
        transform: translateX(-5rem);
        opacity: 0;
    }
}

@keyframes fadeUp {
    0% {
        transform: scale(.5);
        opacity: 0;
    }
}



.home {
    padding-top: 14rem;
    background: url(../images/banner-shape.png) no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;

    .slides-container {

        .slide {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 1.5rem;
            display: none;




            &.active {
                display: flex;
            }


            .content {
                flex: 1 1 40rem;
                animation: fadeLeft .4s linear .4s backwards;

                span {
                    color: #119744;
                    font-size: 2.5rem;
                }

                h3 {
                    font-size: 6rem;
                    color: black;
                    padding: 5rem 0;
                }
            }

            .image {
                flex: 1 1 40rem;
                margin: 3rem 0;

                img {
                    width: 100%;
                    animation: fadeUp .4s linear;
                }
            }
        }
    }

    #next-slide,
    #prev-slide {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        height: 5rem;
        width: 5rem;
        line-height: 5rem;
        box-shadow: slategrey;
        text-align: center;
        background: white;
        font-size: 3rem;
        color: black;
        cursor: pointer;

        &:hover {
            background: #119744;
            color: white;
        }
    }

    #prev-slide {
        left: 2rem;
    }

    #next-slide {
        right: 2rem;
    }
}



.title {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding: 1.2rem 0;
    border-bottom: wheat;
    color: black;

    span {
        color: #119744;
        padding-left: .7rem;
    }

    a {
        margin-left: auto;
        color: #119744;
        font-size: 1.5rem;

        &:hover {
            color: white;
        }
    }
}


.products .box-container {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(25rem, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.5rem;
}

.products .box-container .box {
    position: relative;
    background: #f3f3f3;
    text-align: center;
    overflow: hidden;
}

.products .box-container .box:hover .icons {
    top: 0;
}

.products .box-container .box .icons {
    position: absolute;
    top: -105%;
    left: 0;
    height: 30rem;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: rgba(243, 243, 243, 0.8);
    gap: 1rem;
}

.products .box-container .box .icons div,
.products .box-container .box .icons a {
    font-size: 2rem;
    height: 5rem;
    width: 5rem;
    line-height: 5rem;
    background: #fff;
    -webkit-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    color: #666;
}

.products .box-container .box .icons div:hover,
.products .box-container .box .icons a:hover {
    background: #bac34e;
    color: #fff;
    cursor: pointer;
}

.products .box-container .box .image {
    height: 30rem;
    width: 100%;
    overflow: hidden;
}

.products .box-container .box .image img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.products .box-container .box .content {
    padding: 1.5rem;
}

.products .box-container .box .content h3 {
    font-size: 2rem;
    color: #222;
}

.products .box-container .box .content .price {
    font-size: 2rem;
    color: #222;
    padding: 1rem 0;
}

.products .box-container .box .content .stars i {
    font-size: 1.7rem;
    color: #bac34e;
}

@media (max-width:450px) {
    .home .slides-container .slide .content h3 {
        font-size: 5rem;
    }
}

@media (max-width:991px) {

    .home #next-slide,
    .home #prev-slide {
        transform: translateY(0);
        top: 88%;
    }

    .home #prev-slide {
        left: auto;
        right: 8rem;
    }
}


.contact .row {
    display: flex;
    flex-wrap: wrap-reverse;
    gap: 1.5rem;
    align-items: center;
}

.contact .row form {
    flex: 1 1 40rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
    border: .1rem solid rgba(0, 0, 0, .1);
    background: #fff;
    border-radius: .5rem;
}

.contact .row .image {
    flex: 1 1 40rem;
}

.contact .row .image img {
    width: 100%;
}

.contact .row form .box {
    padding: 1rem;
    font-size: 1.7rem;
    color: #333;
    text-transform: none;
    border: .1rem solid rgba(0, 0, 0, .1);
    border-radius: .5rem;
    margin: .7rem 0;
    width: 100%;
}

.contact .row form .box:focus {
    border-color: black;
}

.contact .row form textarea {
    height: 15rem;
    resize: none;
}


.footer .box-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer .box-container .box {
    flex: 1 1 25rem;
}

.footer .box-container .box h3 {
    color: #333;
    font-size: 2.5rem;
    padding: 1rem 0;
}

.footer .box-container .box a {
    display: block;
    color: #666;
    font-size: 1.5rem;
    padding: 1rem 0;
}

.footer .box-container .box a:hover {
    color: var(--pink);
    text-decoration: underline;
}

.footer .box-container .box img {
    margin-top: 1rem;
}

.footer .credit {
    text-align: center;
    padding: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 2.5rem;
    font-size: 2rem;
    color: #333;
    border-top: .1rem solid rgba(0, 0, 0, .1);
    padding-bottom: 9rem;
}

.footer .credit span {
    color: var(--pink);
}